.main {
    width: 100%;
}

.index ul:after {
    content: "";
    display: table;
    clear: both;
}

.index {
    float: left;
    width: 300px;
}

.index h3 {
    position: relative;
    margin-bottom: 1.3em;
}

.index h3:after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 4em;
    height: 2px;
    background-color: #2e2e30;
}

.index ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.index ul li {
    float: left;
}

.index ul li a {
    position: relative;
    display: block;
    padding: .3em 1em;
    color: #2e2e30;
    min-width: 3em;
    transition: all .3s;
}

.index ul li a:before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background-color: #2e2e30;
    transform: scale(0, 1);
    transition: all .3s;
    transform-origin: center;
}

.index ul li a:hover:before {
    transform: scale(1);
}

.index ul li.active a {
    background-color: #2e2e30;
    color: white;
}


/*   search */

.search {
    border: 6px solid #42455e;
    position: relative;
}

span.search {
    position: absolute;
    top: 0;
    right: 0;
    display: block;
}

span.search a {
    height: 27px;
}

.search input {
    outline: 0;
    border: 0;
    padding: 3px 5px;
    font-size: 16px;
}

.search a {
    display: inline-block;
    background-color: #42455e;
    color: white;
    width: 4em;
    text-align: center;
    height: 24px;
    position: absolute;
    right: 0;
    transition: all .3s;
    top: 0;
}

.search a:hover {
    background-color: white;
    color: black;
}


/*    content    */

.content {
    margin-left: 320px;
    position: relative;
}

.content ul {
    list-style: none;
    font-size: 0;
    margin: 0;
    padding: 0
}

.content ul li {
    display: inline-block;
    width: 33.33%;
}

.item {
    display: block;
    position: relative;
    padding: 5px;
    text-align: center;
    color: black;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 30px;
}

.item-text {
    margin-top: 15px;
}

.item-text>p {
    margin: 3px 0;
}

.item-name {
    color: black;
}

.item-name:hover {
    text-decoration: underline;
}

.item-img {
    width: 310px;
    height: 206px;
    overflow: hidden;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: all .4s;
    transform-origin: center;
}

.item-img:hover img {
    transform: translateY(-3px);
}
